
<meta charset="utf-8" />
<form class="form-horizontal" role="form"
	onsubmit="return submitForm(this);" action="mpamng/deployFeeAdd/add.do">
	<br />
	<!-- 
	 * Input属性说明:
	 * validate="true"  是否需要验证字段
	 * msg="错误时提示信息"        
	 * datatype="数据类型"
	-->
	<!-- #section:elements.form -->
	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> *合作商名称： </label>
		<div class="col-sm-4">
			<label>
				<div class="search_input" style="padding-top: 5px;">
					<select name="agentId" id="agentIdAdd"
						data-placeholder="请选择合作机构编号"
						style="width: 258px; vertical-align: middle;">
					</select>
				</div>
			</label>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1">*支付渠道编号： </label>
		<div class="col-sm-4">
			<label>
				<div class="search_input" style="padding-top: 5px;">
					<select name="channel" id="cooporgNoAdd"
						data-placeholder="请选择合作机构编号"
						style="width: 258px; vertical-align: middle;">
					</select>
				</div>
			</label>
		</div>
	</div>

	<div class="form-group">

		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> *费率类型: </label>
		<div class="col-sm-4">
			<select rel="obj.RATETYPE" location="local" name="rateType"
				id="rateType" data-placeholder="请选择类型"
				style="width: 120px; vertical-align: middle;">
			</select>
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0交易费率(成本)%： </label>
		<div class="col-sm-4">
			<input type="text" id="costRateT0" name="costRateT0"
				placeholder="请输入[T0交易费率(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1交易费率(成本)%： </label>
		<div class="col-sm-4">
			<input type="text" id="costRateT1" name="costRateT1"
				placeholder="请输入[T1交易费率(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0最小手续费(成本)分： </label>
		<div class="col-sm-4">
			<input type="text" id="costMinFeeT0" name="costMinFeeT0"
				placeholder="请输入[T0最小手续费(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0封顶手续费(成本)分： </label>
		<div class="col-sm-4">
			<input type="text" id="costMaxFeeT0" name="costMaxFeeT0"
				placeholder="请输入[T0封顶手续费(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1最小手续费(成本)分： </label>
		<div class="col-sm-4">
			<input type="text" id="costMinFeeT1" name="costMinFeeT1"
				placeholder="请输入[T1最小手续费(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1封顶手续费(成本)分： </label>
		<div class="col-sm-4">
			<input type="text" id="costMaxFeeT1" name="costMaxFeeT1"
				placeholder="请输入[T1封顶手续费(成本)]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0交易费率%： </label>
		<div class="col-sm-4">
			<input type="text" id="rateT0" name="rateT0"
				placeholder="请输入[T0交易费率]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1交易费率%： </label>
		<div class="col-sm-4">
			<input type="text" id="rateT1" name="rateT1" placeholder="请输入[T1交易费率"
				class="col-xs-10 col-sm-7" datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0最小手续费分： </label>
		<div class="col-sm-4">
			<input type="text" id="minFeeT0" name="minFeeT0"
				placeholder="请输入[T0最小手续费]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T0封顶手续费分： </label>
		<div class="col-sm-4">
			<input type="text" id="maxFeeT0" name="maxFeeT0"
				placeholder="请输入[T0封顶手续费]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
	</div>

	<div class="form-group">
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1最小手续费分： </label>
		<div class="col-sm-4">
			<input type="text" id="minFeeT1" name="minFeeT1"
				placeholder="请输入[T1最小手续费]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
		<label class="col-sm-2 control-label no-padding-right"
			for="form-field-1"> T1封顶手续费分： </label>
		<div class="col-sm-4">
			<input type="text" id="maxFeeT1" name="maxFeeT1"
				placeholder="请输入[T1封顶手续费]" class="col-xs-10 col-sm-7"
				datatype="number" />
		</div>
	</div>

	<div class="form-actions align-right  form-button-box"
		style="margin-top: 10px">
		<button class="btn btn-info" type="submit">保存</button>

		&nbsp;
		<button class="btn" type="button"
			onclick="javascript:dialog.close(this);">关闭</button>
	</div>

</form>
<script type="text/javascript">
	/**
	 * 	初始化下拉框-支付渠道
	 */
	$(document).ready(
			function() {
				loadOption("cooporgNoAdd", "", "0",
						"mpcoop/selectoption/cooporgNo.do");
				var p = dialog.getById('dlg-coopOrgMerAdd');

			});

	/**
	 * 	初始化下拉框-支付渠道
	 */
	$(document).ready(
			function() {
				loadOption("agentIdAdd", "", "0",
						"mpamng/selectoption/agentId.do");
				var p = dialog.getById('dlg-coopOrgMerAdd');

			});
	
	$(document).ready(function() {

	});

	function submitForm(obj) {

		//自定义匿名回调函数。 系统默认回调函数：dialogAjaxDone
		return validateCallback(obj, function(result) {
			if (result.rspcod == 200) {
				msg.alert("提示", result.rspmsg, 'correct');
				$("#grid-table").trigger("reloadGrid");
				dialog.close(obj);
			} else {
				msg.alert("错误", result.rspmsg + " 错误代码：" + result.rspcod,
						'error');
			}
		});
	}
</script>
